package com.fary.annotation;

import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Indexed;

/**
 * @author Fary
 * @version 1.0
 * @description: TODO
 * @date 2021/12/3 16:43
 */
public class TestAnnotationUtils {

    public static void main(String[] args) {
        boolean flag = AnnotationUtils.isAnnotationDeclaredLocally(Indexed.class, Component.class);
        boolean flag1 =Component.class.getName().startsWith("javax.");
        System.out.println();
    }
}
